import { createApp} from 'vue'
import store from './store/index'

// taro-ui样式
import 'taro-ui-vue/dist/style/index.scss' 

import './app.less'

const App = createApp({
  onShow (options) {
    console.log(options,'---option')
  },
  // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
})

// 导入过滤器
import {formatDate} from '@/utils/filters.js';
App.config.globalProperties.$filters = {
  fDate(value){
    return formatDate(value)
  }
}
// let plugins = {
//   install(Vue){
//     let Profile = Vue.extend(Toast)
//     let toast = new Profile()
//     toast.$mount(document.createElement('view'));

//     document.body.appendChild(toast.$el)
//     Vue.prototype.$toast = toast;
//   }
// }

App.use(store)

export default App
